import type { Meta, StoryObj } from '@storybook/nextjs-vite'

import { Slide, Props } from './PicCarousel'
import PicCarousel from './PicCarousel';

const meta = {
    title: 'antd/study/PicCarousel',
    component: PicCarousel,
    tags: ['autodocs'],
    parameters: {
        layout: 'center',
    },
    args: {
        slides: [
            {
                image: 'https://cloud.tsinghua.edu.cn/d/0af0300efc8f4cea9b00/files/?p=%2F%E7%85%A7%E7%89%87%2F7%E6%9C%882%E6%97%A5%2F7.2%20wsy%2FIMG_2194.jpeg',
                title: '图片1',
                subtitle: '这是图片1的描述',
            },
        ]
    },
    argTypes: {
        slides: { control: 'object' },
      },
} satisfies Meta<typeof PicCarousel>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Primary: Story = {
    args: {
        slides: [
            {
                image: 'https://cloud.tsinghua.edu.cn/thumbnail/0af0300efc8f4cea9b00/1024/%E7%85%A7%E7%89%87/7%E6%9C%882%E6%97%A5/7.2%20wsy/IMG_9423.JPG',
                title: '图片1',
                subtitle: '这是图片1的描述',
            },
            {
                image: 'https://cloud.tsinghua.edu.cn/thumbnail/0af0300efc8f4cea9b00/1024/%E7%85%A7%E7%89%87/7%E6%9C%882%E6%97%A5/7.2%20wsy/IMG_9427.JPG',
                title: '图片2',
                subtitle: '这是图片2的描述',
            }
        ]
    }
};
